using System;
using System.Web.UI;

using ScottCateAjax2008.UserControls;

namespace ScottCateAjax2008.Lesson05
{
    public partial class K_LoadControl : Page
    {
        protected void Page_Load( object sender, EventArgs e )
        {
            TimeLabelButton timeControl =
                LoadControl( "/usercontrols/TimeLabelButton.ascx" ) as TimeLabelButton;
            
            NewControlPlaceHolder.Controls.Clear();

            NewControlPlaceHolder.Controls.Add( timeControl);
        }
    }
}